package cn.cs.client;

import cn.cs.config.CsConfiguration;
import cn.cs.fallback.CsImageClientFallBack;
import cn.cs.fallback.CsShopOrderProRelClientFallBack;
import cn.cs.pojo.CsImage;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

/**
* yuexl
*/
@FeignClient(name = "cs-item-provider", configuration = CsConfiguration.class, fallback = CsShopOrderProRelClientFallBack.class)
public interface RestCsShopOrderProRelClient {

    @RequestMapping(value = "/getProductSaleCountById",method = RequestMethod.POST)
    public int getProductSaleCountById(@RequestParam("id") String id)throws Exception;


}
